﻿using System;
using System.Collections.Generic;

class OccurencesOfWord
{
    static void Main()
    {
        //string text = Console.ReadLine();
        string text = "Ala baaala nicaaaAla baaala nicaaa ttturrrAla baaala nicaaa ttturrr ttturrr";
        string[] array = text.Split(new char[] { ' ', ',', '!', '?' });

        Dictionary<string, int> collection = new Dictionary<string, int>();

        foreach (string word in array)
        {
            if (collection.ContainsKey(word))
            {
                collection[word]++;
            }
            else
            {                
                collection.Add(word, 1);
            }
        }

        foreach (KeyValuePair<string, int> pair in collection)
        {
            Console.WriteLine("{0} is found {1} times",
                pair.Key,
                pair.Value);
        }
    }
}